package org.agile2soft.nexoma.core.tapestry.encoder;

import org.agile2soft.nexoma.core.controller.ProfileController;
import org.agile2soft.nexoma.core.entity.Profile;
import org.hibernate.SessionFactory;

import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class ProfileEncoder extends HibernateIntegerEncoder<Profile> {


    public ProfileEncoder(SessionFactory sessionFactory,
            ProfileController controller) {
        super(sessionFactory, controller);
    }

    public String toLabel(Profile profile) {
        return profile.getName();
    }

}
